package a_hashmap;

/**
 * 测试哈希表
 */
public class TestMyHashMap {
    public static void main(String[] args) {
        MyHashMap map = new MyHashMap(3);
        map.put(12, 45);
        map.put(3, 14);
        map.put(12, 20);
        System.out.println(map.get(12));

        map.put(14, 20);
        map.put(7, 6);
        System.out.println(map.get(7));

        map.remove(12);
        System.out.println(map.containsKey(12));
        System.out.println(map.containsValue(14));
    }
}
